home *** CD-ROM | disk | FTP | other *** search
/ MacUser ROM 45 / MACUSER-ROM-VOL-45-1997-08.ISO.7z / MACUSER-ROM-VOL-45-1997-08.ISO / オンラインソフト / オンラインソフト⁄毎号掲載 / インターネット関連 / PageSpinner 2.0 / Examples / JavaScript / Redirect_JavaScript_to_here < prev    next >
Text File  |  1997-05-22  |  1KB  |  27 lines

  1. <HTML><HEAD>
  2. <TITLE>Redirect JavaScript-browsers</TITLE>
  3. </HEAD>
  4.  
  5. <BODY BGCOLOR=FFFFFF TEXT=000000>
  6.  
  7. <H1>Redirect JavaScript-browsers</H1>
  8. <BLOCKQUOTE>
  9. <B>The page displayed before was displayed in non JavaScript-enabled browsers </B>
  10. <P>
  11. This page will displayed in JavaScript-enabled browsers
  12. <P>
  13. On the page named "Redirect_JavaScript_browsers" there is a single line of JavaScript that will redirect browsers that support JavaScript to this page. Browsers that support JavaScript will display this page.
  14. <P>
  15. The JavaScript to accomplish this looks like this:
  16. <XMP> this.location = "page_with_js.html";</XMP>
  17. and you will need to place it in the JavaScript section in the HEAD part of your page. 
  18. <P>
  19. This is useful if you rely on JavaScript in some pages,  and want to display non-JavaScript pages to viewers with other browsers.
  20. <P>
  21. This <A HREF="Redirect_JavaScript_browsers">link will try to load the page</A>, but if your browser support JavaScript it will display this page again. Open the page in PageSpinner to see the JavaScript code.
  22. </BLOCKQUOTE>
  23. <HR>
  24.  
  25. </BODY>
  26. </HTML>
  27.